﻿@model IEnumerable<LabChecker.Models.Subject>
@{
    ViewBag.Title = "Subjects";
}
<h2>@ViewBag.Title</h2>
<table>
    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.ActionLink(" ", "Edit", new { id = item.Id }, new { @class = "edit_link" })
            </td>
            <td>
                @Html.ActionLink(item.Name, "Index", "Task", new { subjectId = item.Id }, null)
            </td>
            <td>
                @Html.ActionLink(" ", "Delete", new { id = item.Id }, new { @class = "delete_link" })
            </td>
        </tr>
    }
</table>
@*<p>
    @Html.ActionLink("Create New", "Create")
</p>*@
<p>
    @Html.ActionLink("Import", "Import")
</p>
